﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ditto.Models
{
    public interface ICommentRepository
    {
        IEnumerable<Comment> FindItemComments(int itemID);
        IEnumerable<Comment> FindUserComments(string userID);
        IEnumerable<Comment> FindTransactionComments(int transactionID);
        IQueryable<Comment> FindCommentsByUser(string userID);
        void AddItemComment(Comment comment);
        void AddUserComment(Comment comment);
        void AddTransactionComment(Comment comment);
        void DeleteComment(int id, Comment.CommentType type);
        void Save();

        Comment FindTransactionFeedbackByTransactingUser(int transactionID, string transactingUserID);
        Comment FindTransactionFeedbackByPostingUser(int transactionID, string postingUserID);
    }
}
